package com.cci.kangdao.wechatOrder.service;

import com.cci.kangdao.wechatOrder.dto.request.ServiceLocationRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @description: 请求服务发送短信服务
 * @author: zyf
 * @create: 2021-03-23
 */
public interface IWechatReloadLocationService {
    /**
     * 请求服务发送短信服务
     * @param request
     * @throws Exception
     */
    void reloadLocationSendSms(ServiceLocationRequest locationRequest, HttpServletRequest request,
                               HttpServletResponse response)throws Exception;

    /**
     * 解析token
     * @param locationRequest
     * @param request
     * @param response
     * @throws Exception
     */
    void analysisToken(ServiceLocationRequest locationRequest, HttpServletRequest request,
                       HttpServletResponse response)throws Exception;


    /**
     * 位置更新操作
     * @param locationRequest
     * @param request
     * @param response
     * @throws Exception
     */
    void uploadLocation(ServiceLocationRequest locationRequest, HttpServletRequest request,
                        HttpServletResponse response) throws  Exception;

    /**
     * APP-服务商用户发送终端重新获取位置的接口
     *
     * @param phone    请求参数
     * @param request
     * @param response
     */
    void getServiceReloadLocationNoWorkOrder(String phone, HttpServletRequest request, HttpServletResponse response) throws Exception;

    void setLocationRedis(ServiceLocationRequest locationRequest, HttpServletRequest request, HttpServletResponse response) throws Exception;

    void getLocationRedis(String phone, HttpServletRequest request, HttpServletResponse response);
}
